package generics;

import java.util.ArrayList;

public class Test {
    public static void main(String[] args) {
        //Box类测试
//        Box<Integer> box = new Box<Integer>();
//        box.setT(1111);
//        Integer res = box.getT();
//        Pair<Integer,String> p1 = new Pair<>(1,"apple");
//        Pair<Integer,String> p2 = new Pair<>(2,"pear");
//
//        boolean same = Util.compare(p1, p2);
//        System.out.println(same);
        Class c1 = new ArrayList<String>().getClass();
        Class c2 = new ArrayList<Integer>().getClass();
        System.out.println(c1.equals(c2));
    }
}
